package com.itheima.reggie.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.itheima.reggie.common.R;
import com.itheima.reggie.dto.OrdersDto;
import com.itheima.reggie.entity.OrderDetail;
import com.itheima.reggie.entity.Orders;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

public interface OrderService extends IService<Orders> {

    /**
     * 用户下单
     * @param orders
     */
    public void submit(Orders orders);

    /**
     * 通过订单号修改订单状态
     * @param ordersDto
     */
     public void updateStatusById(OrdersDto ordersDto);

    /**
     * 用户订单分页查询
     * @param pageInfo
     * @return
     */
    public R<Page> userPage(Page pageInfo);

    public void deleteOrder(Long id);
}
